- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3
fix: collapsible section chevron bug, misc refactors [TDX-6738] #738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: collapsible section chevron bug, misc refactors [TDX-6738] #738
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| const expanded = ref<boolean>(true) | ||
| const toggleState = (e: Event) => { | ||
| if (!(e.target as HTMLElement).dataset.selectDropdownTrigger) { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment here on why we need to do this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| useEventListener(popoverTrigger.value, 'mouseenter', showPopover) | ||
| useEventListener(popoverTrigger.value, 'focus', showPopover) | ||
| useEventListener(popoverTrigger.value, 'mouseleave', hidePopover) | ||
| useEventListener(popoverTrigger.value, 'blur', hidePopover) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can pass multiple events as an array to useEventListener, like this useEventListener(popoverTrigger.value, ['mouseenter', 'focus'], showPopover).
Can you try it out and verify?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup you're right, updated this block
Co-authored-by: Afroz Hussain <[email protected]> Co-authored-by: Vaibhav Raj Singh <[email protected]>
## [1.101.2](v1.101.1...v1.101.2) (2025-10-31) ### Bug Fixes * collapsible section chevron bug, misc refactors [TDX-6738] ([#738](#738)) ([0c3875d](0c3875d))
| 🎉 This PR is included in version 1.101.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 | 


Summary
Addresses: https://konghq.atlassian.net/browse/TDX-6738
Fix CollapsibleSection chevron icon bug when clicking on dropdown in CollapsibleSection title, it toggles the chevron icon (recordings).
Before
https://github.com/user-attachments/assets/f63c54ba-b4d7-4b87-bfad-6879f368007d
After
https://github.com/user-attachments/assets/3212c9a1-6b61-42a7-875f-0d99ccc5dc1d
Other misc refactors:
useTemplateRefin bunch of placesuseEventListenerinstead ofaddEventListenerwhere appropriate